import request from "@/utils/Request";
export default {
	getLine() {
		return request({
			url: "/sys/line/get",
			method: "post",
		});
	},
	getSubstation(id) {
		return request({
			url: "/sys/line/getTree",
			method: "post",
			data: { id: id },
		});
	},
	getSystem() {
		return request({
			url: "/sys/system/get",
			method: "post",
		});
	},
	getEquipment(lineId, systemId) {
		return request({
			url: "/sys/equipment/get",
			method: "post",
			data: {
				lineId: lineId,
				systemId: systemId,
			},
		});
	},
	getDianBiao(id) {
		return request({
			url: "/ht/metter/readingTask/get",
			method: "post",
			data: { locationId: id },
		});
	},
};
